//路由配置
WeChatApp.config(['$stateProvider','$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $urlRouterProvider.otherwise('/index');
        $stateProvider
            //总览
            .state('index', {
                url: '/index',    
                templateUrl: 'views/index.html',
                controller:'indexCtrl'
            })

            //用户
            .state('user', {
                url: '/user',
                templateUrl: 'views/user.html',
                controller:'userCtrl'
            })

            //应用列表
            .state('applicationList', {
                url: '/application/list',
                templateUrl: 'views/applicationList.html',
                controller:'applicationListCtrl'
            })

            //应用详情
            .state('applicationMain', {
                url: '/application/main',
                templateUrl: 'views/applicationMain.html',
                controller:'applicationMainCtrl'
            })

            //统计
            .state('statistics', {
                url: '/statistics',
                templateUrl: 'views/statistics.html',
                controller:'statisticsCtrl'
            })

            //系统
            .state('system', {
                url: '/system',
                templateUrl: 'views/system.html',
                controller:'systemCtrl'
            })      
    }
]);